package com.bj58.data.emailreports.utils;

import java.util.HashMap;

public class MyStore {

	//直营城市
	public static String zyCitys = 
		"'北京', '成都', '重庆', '石家庄', '济南', '青岛', '南京', '杭州', '苏州', " +
		"'无锡', '合肥', '武汉', '郑州', '长沙', '福州', '厦门', '南宁', '哈尔滨', " +
		"'长春', '太原', '大连', '沈阳', '上海', '天津', '广州', '深圳', '东莞'";
	
	//业务线对应条件MAP
	private static HashMap<String, String> busLineConditionMap = new HashMap<String, String>();
	
	//获取业务线对应MAP (展现)   类别条件字段注意替换（如需要）
	public static HashMap<String, String> getBusLineConditionMap()throws Exception{
		if(busLineConditionMap.isEmpty()){
			busLineConditionMap.put("黄页", "disp_cate1_name in('农林牧副渔','招商加盟','休闲娱乐','医疗健康','商务服务','婚庆摄影','家政服务','教育培训','汽车服务','旅游酒店','装修建材','餐饮美食','批发采购','丽人','公共服务')  and  (disp_cate2_name !='二手回收' or  disp_cate2_name is null ) ");
			busLineConditionMap.put("招聘", "disp_cate1_name in('全职招聘','兼职招聘')");
			busLineConditionMap.put("二手市场", "( (disp_cate1_name in ('二手市场', '车辆买卖与服务','宠物','票务') and (disp_cate2_name != '二手车' or disp_cate2_name is null) ) or  disp_cate2_name ='二手回收' ) ");
			busLineConditionMap.put("二手车", "disp_cate2_name = '二手车'");
			busLineConditionMap.put("房产", "disp_cate1_name = '房产信息'");
			//某几个单独拉出的二级类线
			busLineConditionMap.put("二手房", "disp_cate2_name = '二手房'");
			busLineConditionMap.put("租房", "disp_cate2_name in ('出租','合租房','求租房','短租房/日租房','租房')");
			busLineConditionMap.put("二手回收", "disp_cate2_name ='二手回收' ");
			
//			busLineConditionMap.put("二手创新", "(disp_cate1_name ='宠物' or disp_cate2_name in ('二手回收','办公用品/设备','艺术品/收藏品','手机号码','二手设备','通讯业务','成人用品','校园二手','二手求购') ) and disp_cate2_name is not null");
//			busLineConditionMap.put("招商加盟", "disp_cate1_name='招商加盟' and disp_cate2_name is not null ");
			
			busLineConditionMap.put("二手创新", " disp_cate1_name in ('回收','宠物','二手交易')");
			busLineConditionMap.put("招商加盟", " disp_cate1_name in ('招商加盟') ");
		}
		return busLineConditionMap;
	}
	
	public static String hyCondition = " disp_cate1_name in('农林牧副渔','招商加盟','休闲娱乐','医疗健康','商务服务','婚庆摄影','家政服务','教育培训','汽车服务','旅游酒店','装修建材','餐饮美食','批发采购','丽人','公共服务')  and  (disp_cate2_name !='二手回收' or  disp_cate2_name is null )  ";
	public static String zpCondtion = "  disp_cate1_name in('全职招聘','兼职招聘')  ";
	public static String esCondtion = "  ((disp_cate1_name in ('二手市场', '车辆买卖与服务','宠物','票务') and (disp_cate2_name != '二手车' or disp_cate2_name is null) ) or  disp_cate2_name ='二手回收' )  ";
	public static String escCondtion = " disp_cate2_name = '二手车'  ";
	public static String fcCondtion = "  disp_cate1_name = '房产信息'  ";
	
//	public static String escxCondtion = " (disp_cate1_name ='宠物' or disp_cate2_name in ('二手回收','办公用品/设备','艺术品/收藏品','手机号码','二手设备','通讯业务','成人用品','校园二手','二手求购') ) and disp_cate2_name is not null ";
//	public static String zsjmCondtion = " disp_cate1_name='招商加盟' and disp_cate2_name is not null  ";
	
	public static String escxCondtion = " disp_cate1_name in ('回收','宠物','二手交易') ";
	public static String zsjmCondtion = " disp_cate1_name in ('招商加盟')  ";
	
	/**业务线中文转换
	 * @param busiEname
	 * @return
	 */
	public static String busilineTran(String busiEname)throws Exception{
		String name = "";
		if("all".equals(busiEname)){
			name = "总体";
		}else if("ershouchuangxin".equals(busiEname)){
			name = "二手创新";
		}else if("ershoutuiguang".equals(busiEname)){
			name = "二手推广";
		}else if("zhaoshangjiameng".equals(busiEname)){
				name = "招商加盟";
		}else if("ershouche".equals(busiEname)){
			name = "二手车";
		}else if("fangchan".equals(busiEname)){
			name = "房产";
		}else if("huangye".equals(busiEname)){
			name = "黄页";
		}else if("zhaopin".equals(busiEname)){
			name = "招聘";
		}else if("ershou".equals(busiEname)){
			name = "二手";
	    }
		return name;
	}
	
	
	/**获取业务线的归属条件
	 * @param busiLine
	 * @return
	 * @throws Exception
	 */
	public static String getBelongCateCons (String busiLine)throws Exception{
		String condition = "";
		if("huangye".equals(busiLine)){
			condition = " belong_cate1_name  in('农林牧副渔','招商加盟','休闲娱乐','医疗健康','商务服务','婚庆摄影','家政服务','教育培训','汽车服务','旅游酒店','装修建材','餐饮美食','批发采购','丽人','公共服务')  and  (belong_cate2_name !='二手回收' or  belong_cate2_name is null )   ";
		}else if("zhaopin".equals(busiLine)){
			condition = " belong_cate1_name in('常规招聘','兼职招聘')  ";
		}else if("fangchan".equals(busiLine)){
			condition = " belong_cate1_name = '房屋信息'  ";
		}else if("ershouchuangxin".equals(busiLine)){
			condition = " belong_cate2_name in ('二手回收','办公用品/设备','艺术品/收藏品','手机号码','二手设备','通讯业务','成人用品','校园二手','二手求购','花鸟鱼虫','宠物店/服务','宠物猫','宠物狗','宠物用品/食品','宠物赠送/领养') ";
		}else if("zhaoshangjiameng".equals(busiLine)){
			condition = " belong_cate1_name = '招商加盟' and belong_cate2_name is not null";
		}else if("ershouche".equals(busiLine)){
			condition = " belong_cate2_name='二手汽车转让'   ";
		}
		return condition;
	}
	
	
	/**收入类型中文转换
	 * @param busiEname
	 * @return
	 */
	public static String incomeTypeTran(String incomeType){
		String name = "";
		if("jingzhun".equals(incomeType)){
			name = "精准";
		}else if("zhiding".equals(incomeType)){
			name = "置顶";
		}else if("zhineng".equals(incomeType)){
			name = "智能";
		}
		return name;
	}
	
	/**收入类型中文转换  --分业务-页面类型流量趋势
	 * @param busiEname
	 * @return
	 */
	public static String incomeTypeTran2(String incomeType){
		String name = "";
		if("jingzhun".equals(incomeType)){
			name = "精准";
		}else if("zhiding".equals(incomeType)){
			name = "置顶";
		}else if("zhineng".equals(incomeType)){
			name = "智能";
		}else if("jingzhun-list".equals(incomeType)){
			name = "精准列表页";
		}else if("jingzhun-detail".equals(incomeType)){
			name = "精准详情页";
		}else if("zhiding-list".equals(incomeType)){
			name = "置顶列表页";
		}else if("zhiding-detail".equals(incomeType)){
			name = "置顶详情页";
		}
		
		return name;
	}
	
	/**来源中文转换
	 * @param busiEname
	 * @return
	 */
	public static String sourceTran(String source)throws Exception{
		String name = "";
		if("all".equals(source)){
			name = "总体";
		}else if("ziyou".equals(source)){
			name = "自有";
		}else if("sem".equals(source)){
			name = "SEM";
		}else if("seo".equals(source)){
				name = "SEO";
		}else if("qita".equals(source)){
			name = "其他";
		}else if("guanggaoxilie".equals(source)){
			name = "广告系列";
		}else if("lianmeng".equals(source)){
			name = "联盟";
		}else if("fufei".equals(source)){
			name = "付费";
		}else if("fufeiliulanqi".equals(source)){
			name = "付费浏览器";
	    }else if("fufeiqita".equals(source)){
	    	name = "付费其他";
        }else if("shoujiqq".equals(source)){
	    	name = "手机QQ";
        }else if("momo".equals(source)){
	    	name = "陌陌";
        }else if("weixilie".equals(source)){
	    	name = "微系列";
        }
		
		return name;
	}
	
	
	/**平台中文转换
	 * @param platformEname
	 * @return
	 */
	public static String platformTran(String platform)throws Exception{
		String name = "";
		if("all".equals(platform)){
			name = "总体";
		}else if("pc".equals(platform)){
			name = "PC端";
		}else if("m".equals(platform)){
			name = "M端";
		}else if("app".equals(platform)){
				name = "APP端";
		}
		
		return name;
	}

	
}
